package com.example.meitu.api.dao;

import com.example.meitu.api.domain.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.meitu.api.dto.ArticleMediaDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 蔡超
* @description 针对表【mt_article(媒体文章表)】的数据库操作Mapper
* @createDate 2024-07-03 14:45:51
* @Entity com.example.meitu.api.domain.Article
*/
public interface ArticleMapper extends BaseMapper<Article> {

    List<ArticleMediaDTO> topMedia(@Param("brandId")Integer brandId,
                                   @Param("mediaIds")List<Integer> mediaIds,
                                   @Param("num")Integer num,
                                   @Param("platform")String platform);

    List<Article> topArticle(@Param("brandId")Integer brandId, @Param("mediaIds")List<Integer> topMediaIds);
}




